#ifndef TCP_CLIENT_FUN_H_
#define TCP_CLIENT_FUN_H_
#include <Arduino.h>

extern char* TCPServerIP;  // 服务器 IP 地址
extern char* TCPServerIP_key;

extern uint16_t TCPServerPort;
extern char* TCPServerPort_key;

extern uint8_t tcp_client_enable;
extern char* tcp_client_enable_key;

extern int32_t tcp_timeout_ms;

void TCPClientInit();
void checkTCPServer();
void taskClientTCP(void* ptParam);
uint8_t requestClientTCP(String request, int len);
#endif